package community.hospital.convert;

import community.hospital.entity.Department;
import community.hospital.entity.request.DepartmentRequest;
import community.hospital.entity.response.DepartmentOptionResponse;
import community.hospital.entity.response.DepartmentResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author yindingjie
 */
@Mapper
public interface DepartmentConvert {
    DepartmentConvert INSTANCE = Mappers.getMapper(DepartmentConvert.class);

    DepartmentResponse convertToResp(Department department);

    Department convertToDepartment(DepartmentRequest request);

    DepartmentOptionResponse convertToDepartmentOptionRequest(Department department);
}
